]> dgit.raspbian.org Git - gnome-shell.git/commit
weather: Take global location switch into account
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 19 Mar 2017 13:31:19 +0000 (14:31 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 20 Mar 2017 18:02:08 +0000 (19:02 +0100)
commit74e1058183b0d22a4caaa80710778c8f2e576e2d
tree4297e6f5d8fcbd9c286c7c11dff4629d2b6a9b58
parent7c9f76944b2910d8da444200c031a35f2ac063d3
weather: Take global location switch into account

The setting to globally disable location settings altogether isn't
handled by the geoclue service itself, but by the authorization
agent. This means that:

 - it doesn't apply to system components
   (which gnome-shell is now considered[0])
 - it doesn't apply once the geoclue connection
   has been authorized

However users can reasonably expect that we won't use location services
after they disabled them, so handle the setting explicitly.

[0] https://cgit.freedesktop.org/geoclue/commit/?id=a4cef6c0ad08

https://bugzilla.gnome.org/show_bug.cgi?id=780252
js/misc/weather.js